<%@ page pageEncoding="UTF-8" %>
<%    
String path = request.getContextPath();    
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";    
pageContext.setAttribute("basePath",basePath);    
%>
<meta charset="utf-8" />
<div id="page"></div>
<link rel="stylesheet" href="<%=basePath%>resources/js/pager/jquery.page.css">
<script src="<%=basePath%>resources/js/pager/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/js/pager/jquery.page.js"></script>
<script type="text/javascript">
	$(function(){
    	var totalPage=${totalPage };
    	var currtPage=${page };
    	$("#page").empty();
		$("#page").Page({
			  totalPages: totalPage,
			  currtPage: currtPage,
			  liNums:10,
			  activeClass: 'activP',
			  callBack : function(page){
					var boxSearchText = '${searchText}';
					var searchSex = '${searchSex}';
					var url="";
					if(boxSearchText.length!=0){
						url ="&searchText="+boxSearchText ; 
					}
					if(searchSex.length!=0){
						url ="&searchSex="+searchSex ; 
					}
					window.location.href = 'index.html?page='+page +url; 
			  }
  		});
	})
</script>

<!-- 代码部分end -->

